<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="admin/lib/html5shiv.js"></script>
<script type="text/javascript" src="admin/lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="admin/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="admin/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="admin/static/h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="admin/admin/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>添加凭证</title>
	<style>
		.certificate-table th{
			text-align: center;
		}
		.certificate-table input{
			width: 100%;
			height: 100%;
		}
		#form-add{
			border: solid 2px;
			box-shadow: 10px 10px 5px #888888;
			padding: 8px;
		}
	</style>
</head>
<body>
<article class="page-container">
	<div class="container">
		<form class="form form-horizontal" action="/doAddCertificate" method="post" id="form-add">
			<div>
				{{csrf_field()}}
				<div style="margin-bottom: 20px">
					<span>凭证字</span>
					<select name="cert-type" class="select" id="" style="width: 100px">
						<option value="记">记</option>
						<option value="付">付</option>
						<option value="收">收</option>
					</select>
					<input type="text" required name="cert-name" class="input input-text radius size-S" style="width: 100px">
					<span>号</span>

					<span  style="margin-left: 30px">日期：</span><input name="date" required  type="date">
					<strong	style="font-size: 30px;margin-left: 30px">记账凭证</strong>
				</div>
				<table class="certificate-table table table-border table-bordered radius ">
					<thead >
					<tr>
						<th>摘要</th>
						<th>会计科目</th>
						<th>借方金额</th>
						<th >贷方金额</th>
					</tr>

					</thead>
					<tbody>
					<tr>
						<td><input type="text" required name="content-1[]" class="input-text" style="border: none;outline: none;cursor: pointer"></td>
						<td><input type="text" required name="content-1[]" class="input-text" style="border: none;outline: none;cursor: pointer"></td>
						<td><input type="text"  name="content-1[]" class="input-text" style="border: none;outline: none;cursor: pointer"></td>
						<td><input type="text"  name="content-1[]" class="input-text" style="border: none;outline: none;cursor: pointer"></td>
					</tr>
					<tr>
						<td><input type="text" name="content-2[]" class="input-text" style="border: none;outline: none;cursor: pointer"></td>
						<td><input type="text" name="content-2[]" class="input-text" style="border: none;outline: none;cursor: pointer"></td>
						<td><input type="text" name="content-2[]" class="input-text" style="border: none;outline: none;cursor: pointer"></td>
						<td><input type="text" name="content-2[]" class="input-text" style="border: none;outline: none;cursor: pointer"></td>
					</tr>
					<tr>
						<td><input type="text" name="content-3[]" name="content-abstract-3" class="input-text" style="border: none;outline: none;cursor: pointer"></td>
						<td><input type="text" name="content-3[]" class="input-text" style="border: none;outline: none;cursor: pointer"></td>
						<td><input type="text" name="content-3[]" class="input-text" style="border: none;outline: none;cursor: pointer"></td>
						<td><input type="text" name="content-3[]" class="input-text" style="border: none;outline: none;cursor: pointer"></td>
					</tr>
					<tr>
						<td colspan="2"><strong>合计：</strong><input type="text" class="input-text" style="border: none;outline: none;cursor: pointer;width: 60%"></td>
						<td colspan="2"><input type="text" class="input-text" name="total-money" style="border: none;outline: none;cursor: pointer"></td>
					</tr>
					</tbody>
				</table>
				<div style="margin-top: 20px;margin-left: 20px;height: 50px">
					<strong>记账人：</strong><strong>	管理员123</strong><input type="text" hidden name="admin_id" value="1">
					<input style="float: right;" class="btn submit" type="submit">
				</div>
			</div>
		</form>
	</div>

</article>

<!--_footer 作为公共模版分离出去--> 
<script type="text/javascript" src="admin/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="admin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="admin/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="admin/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	$("#form-admin-add").validate({
		rules:{
			adminName:{
				required:true,
				minlength:4,
				maxlength:16
			},
			password:{
				required:true,
			},
			password2:{
				required:true,
				equalTo: "#password"
			},
			sex:{
				required:true,
			},
			phone:{
				required:true,
				isPhone:true,
			},
			email:{
				required:true,
				email:true,
			},
			adminRole:{
				required:true,
			},
		},
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
			$(form).ajaxSubmit({
				type: 'post',
				url: "xxxxxxx" ,
				success: function(data){
					layer.msg('添加成功!',{icon:1,time:1000});
				},
                error: function(XmlHttpRequest, textStatus, errorThrown){
					layer.msg('error!',{icon:1,time:1000});
				}
			});
			var index = parent.layer.getFrameIndex(window.name);
			parent.$('.btn-refresh').click();
			parent.layer.close(index);
		}
	});

});
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>